//
//  NSNotificationCenter+NED.h
//  SuoShi
//
//  Created by 林宁宁 on 2019/3/11.
//  Copyright © 2019 林宁宁. All rights reserved.
//

//https://github.com/nicklockwood/FXNotifications
#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN


#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wobjc-missing-property-synthesis"

@interface NSNotificationCenter (NED)


+ (void)ned_addObserver:(id)observer
                   name:(nullable NSString *)name
             usingBlock:(void (^)(NSNotification *note, id observer))block;

+ (void)ned_addObserver:(id)observer
                  names:(NSArray <NSString *> *)names
             usingBlock:(void (^)(NSNotification *note, id observer))block;


- (void)ned_addObserver:(id)observer
                forName:(nullable NSString *)name
                 object:(nullable id)object
                  queue:(nullable NSOperationQueue *)queue
             usingBlock:(void (^)(NSNotification *note, id observer))block;

@end

#pragma GCC diagnostic pop

NS_ASSUME_NONNULL_END
